package com.njxxted.activiti.modules.process.diagram;

import org.activiti.bpmn.model.BpmnModel;
import org.activiti.image.ProcessDiagramGenerator;

import java.awt.*;
import java.io.InputStream;
import java.util.List;
import java.util.Set;

/**
 * 描述：自定义绘制流程图
 * <p>
 * 作者：Ostrich Hu
 * 时间：2019/8/20 15:32 星期二
 */
public interface CustomProcessDiagramGeneratorI extends ProcessDiagramGenerator {
    //重写ProcessDiagramGenerator接口中的generateDiagram方法，增加color参数
    InputStream generateDiagram(BpmnModel bpmnModel,
                                String imageType,
                                List<String> highLightedActivities,
                                List<String> highLightedFlows,
                                String activityFontName,
                                String labelFontName,
                                String annotationFontName,
                                ClassLoader customClassLoader,
                                double scaleFactor,
                                Color[] colors,
                                Set<String> currIds,
                                String instanceId);
}
